package com.etc.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.etc.entity.BlogComnent;
import com.etc.entity.UBB;

@Repository
public interface BlogComnentMapper {
	int deleteByPrimaryKey(Integer bcid);

	int insert(BlogComnent record);

	int insertSelective(BlogComnent record);

	BlogComnent selectByPrimaryKey(Integer bcid);

	int updateByPrimaryKeySelective(BlogComnent record);

	int updateByPrimaryKey(BlogComnent record);

	/**
	 * 博客表与评论表联合查询
	 * 
	 * @param bid
	 * @return
	 */
	public List<BlogComnent> getBlogComnentByBid(int bid);

	/**
	 * 联合查询
	 * 
	 * @return
	 */
	public List<BlogComnent> getBlogComnent();

	List<UBB> getUBB(@Param("bid") int bid);

}